;;; init-dart.el --- dart config
;;; Commentary:
;;; Code:

;; Dart
(use-package dart-mode
  :defer t
  :defines (projectile-project-root-files-bottom-up)
  :config
  (with-eval-after-load 'projectile
    (add-to-list 'projectile-project-root-files-bottom-up "pubspec.yaml")
    (add-to-list 'projectile-project-root-files-bottom-up "BUILD")))

;; dart 按键设置
(leader-key dart-mode-map
  "m" '(:ignore t :wk "lang")
  "mx" '(quickrun :wk "run")
  )

(provide 'init-dart)
;;; init-dart.el ends here
